<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>
<%@ page import="whf.framework.entity.*" %>
<%@ page import="whf.framework.util.*" %>
<%@ page import="whf.framework.meta.*" %>
<html>
<head>
		<STYLE type=text/css>
	BODY{
		scrollbar-face-color: #DEE3E7;
		scrollbar-highlight-color: #D1D7DC;
		scrollbar-shadow-color: #98AAB1;
		scrollbar-3dlight-color: #ffffff;
		scrollbar-arrow-color: #006699;
		scrollbar-track-color: #EFEFEF;
		scrollbar-darkshadow-color: #EFEFEF;
		margin-left:0px;
		margin-top:0px;
		margin-right:0px;
		margin-bottom:0px;
		overflow-x:auto;
		overflow-y:auto;
		font-size:9pt;
		font-family:宋体;
		text-align: left;
		background-image:url("images/navi_bg_0.jpg");
	}	
	.scroll 
	{
			scrollbar-face-color:#EFEFEF;
			scrollbar-arrow-color:#4078c1;
			scrollbar-highlight-color:#EFEFEF;
			scrollbar-3dlight-color:#4078c1;
			scrollbar-shadow-color:#4078c1;
			scrollbar-darkshadow-color:#ffffff;
			scrollbar-track-color:#ffffff; 
			overflow:auto;
	}
	
	div.scrollDiv {
		overflow: auto; 
		height:expression(parent.parent.document.getElementById("leftFrame").height - 195); 
		width:100%; 
		vertical-align:top;
	}
	
	a, a:visited, a:hover { 
	 text-decoration:none; 
	 color: #000000;
	 font-size:9pt;
	}
	a:hover {
		text-decoration: underline;
		font-size:9pt;
	}
 	.leftmenu{behavior:url(library/htc/leftmenu3.htc);}
</STYLE>		
</head>
<body>
<%
String boClassName = request.getParameter("boClassName");
boolean hideRoot = ParamUtils.getBooleanParameter(request, "hideRoot");
int deepth = ParamUtils.getIntParameter(request, "deepth", 100);
long rootId = ParamUtils.getLongParameter(request, "root", 0);
String treeFinderName = request.getParameter("treeFinderName");

ITreeItem root = null;
try{
	Class cls = Class.forName(boClassName);
	Meta meta = MetaFactory.findByModelClass(cls);
	if(StringUtils.isEmpty(treeFinderName)){
		treeFinderName = meta.getServiceName();
	}
	if(rootId != 0){
		root = (ITreeItem)(BeanFactory.getService(meta.getServiceName()).findByPrimaryKey(new Long(rootId)));
	}
}catch(Exception e){
	//
}
%>
<framework:menu target="treeMainFrame" displayStyle="WebFxTree" menuItemStyle="checkbox" treeFinder="<%=treeFinderName%>" root="<%=root%>" hideRoot="<%=hideRoot%>" deepth="<%=deepth%>" />
</body>
</html>